package com.example.testvolication.pojo.dto;

import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

/**
 * @author zhangs
 * @date 2022/5/18 10:32
 */
@Data
@Builder
public class Demo {

    @Max(value = 10 , message = "Demo的type最大值要小于等于10")
    @NotNull(message = "Demo的type不能为null")
    private Integer type;

    @NotNull(message = "Demo的type名称不能为空")
    private String name;

    private String value;

    private Integer nextType;
}
